package com.asj.house.controller;

import com.asj.house.client.HouseHitsClient;
import com.asj.house.client.HouseNoticeClient;
import com.asj.house.returns.RespEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("house-notice")
@Api(value = "公告接口", tags = "公告接口")
@Slf4j
public class HouseNoticeController {

    @Resource
    private HouseNoticeClient houseNoticeClient;

    @GetMapping("/list")
    @ApiOperation(value = "公告列表")
    public RespEntity listHouseNotice() {
        RespEntity respEntity = houseNoticeClient.listHouseNotice();
        return respEntity;
    }

}
